function Image () {
  this.x = 0
  this.y = 0
}

Image.prototype.draw = function (ctx) {
  let img = document.createElement('img')
  ctx.imageSmoothingQuality = 'high'
  img.onload = function () {
    ctx.drawImage(this, 0, 0)
  }
  img.src = 'https://tse2-mm.cn.bing.net/th/id/OIP.FrzCHoCMI845RMIKykBk_gHaD8?pid=Api&rs=1'
}